home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_mysql.idb / usr / freeware / include / mysql / sslopt-case.h.z / sslopt-case.h
C/C++ Source or Header  |  2002-10-07  |  2KB  |  43 lines

  1. /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
  2.    
  3.    This library is free software; you can redistribute it and/or
  4.    modify it under the terms of the GNU Library General Public
  5.    License as published by the Free Software Foundation; either
  6.    version 2 of the License, or (at your option) any later version.
  7.    
  8.    This library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Library General Public License for more details.
  12.    
  13.    You should have received a copy of the GNU Library General Public
  14.    License along with this library; if not, write to the Free
  15.    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  16.    MA 02111-1307, USA */
  17.  
  18. #ifdef HAVE_OPENSSL
  19.     case OPT_SSL_SSL:
  20.       opt_use_ssl = 1;                /* true */
  21.       break;
  22.     case OPT_SSL_KEY:
  23.       opt_use_ssl = 1;                /* true */
  24.       my_free(opt_ssl_key, MYF(MY_ALLOW_ZERO_PTR));
  25.       opt_ssl_key = my_strdup(optarg, MYF(0));
  26.       break;
  27.     case OPT_SSL_CERT:
  28.       opt_use_ssl = 1;                /* true */
  29.       my_free(opt_ssl_cert, MYF(MY_ALLOW_ZERO_PTR));
  30.       opt_ssl_cert = my_strdup(optarg, MYF(0));
  31.       break;
  32.     case OPT_SSL_CA:
  33.       opt_use_ssl = 1;                /* true */
  34.       my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR));
  35.       opt_ssl_ca = my_strdup(optarg, MYF(0));
  36.       break;
  37.     case OPT_SSL_CAPATH:
  38.       opt_use_ssl = 1;                /* true */
  39.       my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR));
  40.       opt_ssl_ca = my_strdup(optarg, MYF(0));
  41.       break;
  42. #endif
  43.